/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.si.ufc.teste;
import br.ufc.si.config.HibernateUtil;
import org.hibernate.Session;
import org.hibernate.Transaction;
import br.ufc.si.sistema.to.ProfessorOrientadorTO;

/**
 *
 * @author Am1b10s
 */
public class TesteProfessorOrientadorTable {
    public static void main(String[] args) {
		ProfessorOrientadorTO po = new ProfessorOrientadorTO();
		Session session = HibernateUtil.getSession();
		Transaction txt = session.beginTransaction();
                po.setProfessor_orientador_id(0);
                po.setCpf(3341055);
                po.setSenha("143456");
                po.setEmail("dkviber@hotmail.com");
                po.setNome("Dalker Pinheiro");
                po.setTelefone(34123287);
                System.out.println("teste");
		session.save(po);
		txt.commit();
		

	}
}
